Skip to content

DoAddCommand - Replacement for NonWorking .Object API#40

Closed
artschekoff wants to merge 5 commits intoipfs-shipyard:mainfrom
artschekoff:main
Closed

DoAddCommand - Replacement for NonWorking .Object API#40
artschekoff wants to merge 5 commits intoipfs-shipyard:mainfrom
artschekoff:main

Conversation

@artschekoff
Copy link
Copy Markdown

Details are here - #39

Comment thread src/IpfsClient.cs
/// <param name="arg">Args</param>
/// <param name="options">Options</param>
/// <returns>Response</returns>
public async Task<ICollection<IpfsFile>> DoAddCommand(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The UploadAsync methods handles multipart form data for a given command. We shouldn't need to create a new method for this, especially not one this specific in a class this general.

Instead of this, we should just fix the existing FileSystem.AddDirectoryAsync method.

Comment thread src/IpfsFIle.cs
/// IpfsFile
/// </summary>
[DataContract]
public class IpfsFile
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this type was created for the DoAddCommand method created above, but we already have this in ipfs-net-core as IFileSystemLink and IMerkleLink, with a FileSystemLink implementation in this repo.

Comment thread src/Makefile
@@ -0,0 +1,5 @@
include .env
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to include a makefile. The underlying commands are already as simple as can be, and our CI handles publishing updates to nuget.

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to add a nuspec here, and these values are different from our published package.

@Arlodotexe
Copy link
Copy Markdown
Collaborator

Significant improvements around the FilestoreApi.AddAsync method have been made as of 0.6.0, and the deprecated Object API has been removed entirely. See #43

@Arlodotexe Arlodotexe closed this Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants